package xyz.xtt.asset.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资产编号表
 * </p>
 *
 * @author daveafei
 * @since 2025-03-17
 */
@Data
@Builder
@Accessors(chain = true)
@TableName("tbl_asset_no")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TblAssetNo对象", description = "资产编号表")
public class TblAssetNo implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty("主键ID")
	private Long id;

	@ApiModelProperty("根资产ID")
	private Long rootAssetId;

	@ApiModelProperty("资产编号")
	private String assetNo;

	@ApiModelProperty("资产ID")
	private Long assetId;

	@ApiModelProperty("用户ID ")
	private Long appUserId;

	@ApiModelProperty("资产交易表ID")
	private Long transactionId;

	@ApiModelProperty("资产类型 0 资产 1铸造权 注意：当此字段值为1时asset_id为铸造权所对应父资产id")
	private Integer assetType;

	@ApiModelProperty("资产来源：0:purchase 1:gift 2:activity")
	private String source;

	@ApiModelProperty("创建时间")
	private Long createTime;

	@ApiModelProperty("更新时间")
	private Long updateTime;

	@ApiModelProperty("编号状态 0:正常 1:锁定 2:闲置")
	private Integer noStatus;

	@ApiModelProperty("版本号")
	private Long ver;

	@ApiModelProperty("获取时间")
	private Long receiveTime;

	/**
	 * 资产是否可见 0：下架 1：上架
	 */
	@ApiModelProperty("资产是否可见 0：下架 1：上架")
	private Integer sellPattern;
	
}
